import { languages } from '@/app/i18n/settings'
import { getT } from '@/app/i18n'

export async function generateStaticParams() {
  return languages.map((lng: string) => ({ lng }))
}

export async function generateMetadata() {
  const { t } = await getT('translation')
  return {
    title: t('nav.profile')
  }
}

export default async function Layout({ children }: { children: React.ReactNode }) {
  return children
}
